package org.lovelandhs.robotics.y2010;

import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.Gyro;
import org.lovelandhs.robotics.y2010.camera.Camera;
import org.lovelandhs.robotics.y2010.drive.Drive;

/**
 *
 * @author Robotics
 */
public class Hardware {

	private DriverStation station;
	private Drive drive;
	private Camera camera;
	private Kicker kicker;
	private Gyro gyro;
	private DigitalInput switch1;
	private DigitalInput switch2;
	private Compressor compressor;

	public Hardware() {
		station = DriverStation.getInstance();

		drive = new Drive();
		Robot.get().addListener(drive);

		camera = new Camera();
		kicker = new Kicker(1, 2);

		gyro = new Gyro(1);
		gyro.reset();
		switch1 = new DigitalInput(1);
		switch2 = new DigitalInput(2);

		compressor = new Compressor(3, 4);
		compressor.start();
	}

	public Camera getCamera() {
		return camera;
	}

	public Drive getDrive() {
		return drive;
	}

	public Kicker getKicker() {
		return kicker;
	}

	public Gyro getGyro() {
		return gyro;
	}

	public DriverStation getStation() {
		return station;
	}

	public DigitalInput getSwitch1() {
		return switch1;
	}

	public DigitalInput getSwitch2() {
		return switch2;
	}

}
